/* 世界杯专用样式文件 */

/* 通用世界杯主题色彩 */
:root {
    --worldcup-primary: #FFD700;
    --worldcup-primary-alpha: rgba(255, 215, 0, 0.3);
    --worldcup-primary-glow: rgba(255, 215, 0, 0.5);
    --worldcup-secondary: #FFA500;
    --worldcup-accent: #FF6347;
    --worldcup-success: #32CD32;
    --worldcup-gradient: linear-gradient(135deg, #FFD700, #FFA500);
    --worldcup-card-bg: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(30, 30, 60, 0.9) 100%);
}

/* 世界杯卡片动画效果 */
.worldcup-card {
    position: relative;
    overflow: hidden;
}

.worldcup-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--worldcup-primary-alpha) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.worldcup-card:hover::after {
    opacity: 1;
}

/* 世界杯状态标签增强 */
.worldcup-status {
    position: relative;
    overflow: hidden;
}

.worldcup-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.worldcup-status:hover::before {
    left: 100%;
}

/* 排行榜动画 */
.leaderboard-row {
    transition: all 0.3s ease;
    position: relative;
}

.leaderboard-row:hover {
    transform: translateX(5px);
    background: rgba(255, 215, 0, 0.1) !important;
}

.leaderboard-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--worldcup-gradient);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.leaderboard-row:hover::before {
    transform: scaleY(1);
}

/* 对战图连接线动画 */
.bracket-connector {
    position: relative;
    overflow: hidden;
}

.bracket-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--worldcup-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s ease;
}

.bracket-connector.animated::after {
    transform: scaleX(1);
}

/* 冠军特效 */
.champion-card {
    position: relative;
    animation: championGlow 2s ease-in-out infinite alternate;
}

@keyframes championGlow {
    0% {
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 0 20px var(--worldcup-primary-glow),
            inset 0 0 15px rgba(255, 255, 255, 0.05);
    }
    100% {
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.4),
            0 0 40px var(--worldcup-primary-glow),
            inset 0 0 25px rgba(255, 255, 255, 0.1);
    }
}

/* 粒子效果背景 */
.worldcup-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.worldcup-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--worldcup-primary);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .worldcup-card {
        margin-bottom: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .bracket-container {
        min-width: 800px;
        gap: 20px;
    }
    
    .match-card {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .bracket-container {
        min-width: 600px;
        gap: 15px;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .worldcup-title {
        font-size: 1.2rem;
    }
}

/* 加载动画 */
.worldcup-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--worldcup-primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 成功提示动画 */
.worldcup-success {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 世界杯图标特效 */
.worldcup-icon {
    display: inline-block;
    transition: all 0.3s ease;
}

.worldcup-icon:hover {
    transform: rotate(10deg) scale(1.1);
    color: var(--worldcup-primary);
    text-shadow: 0 0 10px var(--worldcup-primary-glow);
}

/* 进度条样式 */
.worldcup-progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    height: 8px;
    position: relative;
}

.worldcup-progress-bar {
    height: 100%;
    background: var(--worldcup-gradient);
    border-radius: 10px;
    transition: width 0.8s ease;
    position: relative;
    overflow: hidden;
}

.worldcup-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}